﻿package net.wangit.user.role;

import java.io.Serializable;
import java.util.Map;

public class Role implements Serializable {

	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private boolean valid;
	private Map privileges;

	protected Role(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public Map getPrivileges() {
		return privileges;
	}

	protected void setPrivileges(Map privileges) {
		this.privileges = privileges;
	}

	public String getName() {
		return name;
	}

	protected void setName(String name) {
		this.name = name;
	}

	public boolean isValid() {
		return valid;
	}

	protected void setValid(boolean valid) {
		this.valid = valid;
	}
}
